#pragma once

#include <tuple>
#include <regex>
#include <atomic>

std::tuple<std::string, std::string, std::string>
url_split(const std::string &url);

class Counter
{
private:
    std::atomic<int> success_cnt;
    std::atomic<int> failed_cnt;
    std::atomic<int> total_cnt;

public:
    Counter();

    void success();
    void failed();
    std::tuple<int, int, int> summary();
};